{% extends 'base.html' %}
{% load static %}
{% block 'title' %}注册{% endblock%}
{% block 'header-title' %}用户注册{% endblock%}

{% block 'header' %}
    {% include 'header-widget.html' %}
{% endblock %}
{% block 'content' %}
    <div class="container">

        <form method="post" class="">
            {% csrf_token %}
            <div class="form-group">
                <label for="username">用户名</label>
                <input class="form-control" id="username" type="text" name="username" placeholder="用户名" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input class="form-control" type="password" id="password" name="password" placeholder="密码" required>
            </div>
            <div class="form-group">
                <label for="password">邮箱</label>
                <input class="form-control" type="email"" id="email" name="email" placeholder="邮箱" required>
            </div>
            {% include 'message.html' %}
            <button class="btn btn-outline-success" type="submit">注册</button>
            
        </form>
        
        <div>
            已经注册？<a href="{% url 'login' %}">登录</a>
        </div>
    </div>
{% endblock %}